package com.yangjie.autotest.hpsa;

import java.util.List;

import javax.inject.Inject;
import javax.inject.Named;

import org.springframework.transaction.annotation.Transactional;

import com.yangjie.autotest.hpsa.dao.HPSADao;
import com.yangjie.autotest.hpsa.domain.AuditMessage;
import com.yangjie.autotest.hpsa.domain.HisParentOrder;
import com.yangjie.autotest.hpsa.domain.ParentOrder;

@Transactional
@Named("hpsaService")
public class HPSAService {
	@Inject
	private HPSADao dao = null;

	
	public int getCurrentMaxOrderId() {
		return dao.getCurrentMaxOrderId();
	}

	public int getCurrentMaxAuditId() {
		return dao.getCurrentMaxAuditId();
	}
	
	public List<AuditMessage> getNewAuditMessage(int priMaxAuditId) {
		return dao.getNewAuditMessage(priMaxAuditId);
	}


	public List<ParentOrder> getNewParentORder(int priMaxOrderId) {
		return dao.getNewParentORder(priMaxOrderId);
	}
	
	public List<HisParentOrder> getNewHisParentORder(int priMaxOrderId) {
		return dao.getNewHisParentORder(priMaxOrderId);
	}
}
